package com.sam.util
{
	import mx.formatters.DateFormatter;

	public class DateUtils
	{
		public static function formatYmd(date:Date):String
		{
			var format:DateFormatter=new DateFormatter;
			format.formatString="YYYY-MM-DD";
			return format.format(date);
		}
		
		public static function formatYmdhn(date:Date):String
		{
			var format:DateFormatter=new DateFormatter;
			format.formatString="YYYY-MM-DD HH:NN";
			return format.format(date);
		}

		public static function formatMd(date:Date):String
		{
			var format:DateFormatter=new DateFormatter;
			format.formatString="MM-DD";
			return format.format(date);
		}

		public function DateUtils()
		{
		}

	}
}